package com.zyw.zhuangdian.pojo.dto;

import com.zyw.zhuangdian.constant.ServiceConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("文章表")
public class ArticleDto extends PageDto{
    @ApiModelProperty("主键id")
    private Long aid;
    @ApiModelProperty("创建者ID 32")
    private String publisher;
    @ApiModelProperty("标题 50")
    private String title;
    @ApiModelProperty("内容")
    private String content;
    @ApiModelProperty("文章类型 'article/review' 20")
    private String type;
    @ApiModelProperty("关联产品Id")
    private Long pid;
    @ApiModelProperty("标签 300")
    private String tags;
    @ApiModelProperty("记录状态 0 失效 1 可见 2 隐藏")
    private int status = ServiceConstant.ARTICLE_VISIBLE;
    @ApiModelProperty("创建时间")
    private Date createTime;
}
